package cn.hh.org.domain;

import cn.hh.basic.domain.BasicDomain;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BasicDomain{
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Long parent_id;
    private Employee employee;
    /*自联查询上级部门*/
    private Department parent;
    private List<Department> children =new ArrayList<>();
    public String getLabel(){
        return this.name;
    }
    public String getValue(){
        return String.valueOf(id);
    }
}
